<#include "../common/layout.ftl"/>
<@layout>
<div width="100%" heigth="900px">
	<div class="dxfsqd_title">关键业务操作日志</div>
	<div class="dxfsqd_shearch">
	<form method="post" action="/operator" class="form-inline">
		<#if session.userRole == 'admin' || session.userRole == 'brandManager'>
		<label><span>开始时间：</span><input type="text" class="input-medium" style="height: 30px"  name="beginDate" value="${beginDate!""}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"/></label> 
			<label><span>结束时间：</span><input type="text" class="input-medium" style="height: 30px"  name="endDate" value="${endDate!""}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"/></label> 
			<button type="submit" class="btn btn-primary"><i class="icon-search icon-white"></i>查询</button>
		</#if>
	</form>
  </div>
<div class="dxfsqd_table">

	<table class="table table-bordered table-striped">
		<thead>
		  <tr>
			<th  scope="col">操作人id</th>
			<th  scope="col">操作员登录号</th>
			<th  scope="col">分公司代码</th>
			<th  scope="col">分公司名称</th>
			<th  scope="col">日志类型</th>
			<th  scope="col">修改人账号</th>
			<th  scope="col">修改前金额</th>
			<th  scope="col">修改后金额</th>
			<th  scope="col">变动金额</th>
			<th  scope="col">订单编号</th>
			<th  scope="col">变动时间</th>
		  </tr>
		</thead>
		<tbody>
		<#if page??>
			<#list page.list as operator>
			  <tr>
				<td>
				  <span class="label">${operator.sys_user_id}</span>
				</td>
				<td>
				  ${operator.sys_user_name}
				</td>
				<td>
				  ${operator.company}
				</td>
				<td>
				  ${operator.companyname}
				</td>
				<td>
				  ${operator.remarks}
				</td>
				<td>
				  ${operator.b_user_id!""}
				</td>
				<td>
				  ${operator.pre_amt!"0"}
				</td>
				<td>
				  ${operator.after_amt!"0"}
				</td>
				<td>
				  ${operator.log_amt!"0"}
				</td>
				<td>
				  ${operator.order_id!"0"}
				</td>
				<td>
				   <#if operator.create_time??>
				     ${operator.create_time?string("yyyy:MM:dd HH:mm:ss") }  
				   </#if>  
				</td>
			  </tr>
			</#list>
		</#if>
		</tbody>
	</table>  
	<#include "../common/paginate.ftl" />
	<#if page??>
	<@paginate currentPage=page.pageNumber totalPage=page.totalPage actionUrl="/operator/" urlParas="?beginDate=${beginDate?if_exists}&endDate=${endDate?if_exists}"/>
	</#if>
</div>
</div>
<script type="text/javascript" src="/js/wdatePicker/WdatePicker.js"></script>
</@layout>